<?php
try {
    if($_REQUEST['height']>=190||$_REQUEST['height']<=150){
        echo $_REQUEST['height'];
        throw new Exception('不要竹竿，不要冬瓜');
    }
     if($_REQUEST['length']<=0.1){
        throw new Exception('老娘可不想高潮的时候一只手抓床单！');
    }
     if($_REQUEST['weight']>=160||$_REQUEST['weight']<=120){
        throw new Exception('太重老娘撑不住，太轻老娘守不住');
    }
    if($_FILES['file']['size']<=0){
         throw new Exception('帅不能当饭吃，可是不帅吃不下去饭啊');
    }
 else {
        echo "欢迎加入备胎联盟";    
    }
} catch (Exception $exc) {
    echo $exc->getMessage();
}

